-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add <ExecutableDocumentEditor />
component
#281
Conversation
🦋 Changeset detectedLatest commit: a36085f The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This pull request is being automatically deployed with Vercel (learn more). the-guild-components – ./examples/nextjs🔍 Inspect: https://vercel.com/theguild/the-guild-components/8ij7y62XJqXHtRq5CaRsPVBr7Npb the-guild-components-storybook – ./🔍 Inspect: https://vercel.com/theguild/the-guild-components-storybook/DBm5BsmQQerKsa9iprC9thgcyr6r |
The latest changes of this PR are available as alpha in npm (based on the declared
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I saw a few adjustments in the code because of the language-service package.
I think we can merge this now, and later update dependencies.
@n1ru4l please take a look and try the alpha? if it working well with the envelop playground, i think we can merge 👍 |
661c72d
to
4383827
Compare
4383827
to
e3cc32d
Compare
I think we should rename this component to |
@n1ru4l it's more correct (because we can use the editor to autocomplete only fragments) but I personally prefer |
@B2o5T Sure, I am fine with both. I just think the wording is more consistent with the one the GraphQL specification uses https://spec.graphql.org/June2018/#sec-Executable-Definitions |
I'm fine with both :) |
Ok, so I'll rename it to |
e3cc32d
to
a36085f
Compare
<OperationsEditor />
component< ExecutableDocumentEditor />
component
< ExecutableDocumentEditor />
component<ExecutableDocumentEditor />
component
related #49
Screen.Recording.2021-12-10.at.21.17.43.mov
Also, this will be nice to update
graphql-language-service
to v4, because curly braces{
and}
adds automatically for selections that have subfields, see issue